<template>
  <div>
    <h1 v-color>App</h1>
    <button @click="toggle">toggle</button>
    <Child v-if="isShow"></Child>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import Child from './Child.vue';
const isShow = ref(true);
const toggle = () => {
  isShow.value = !isShow.value;
};
</script>

<style lang="scss" scoped></style>
